/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.upc.dew.cobranzas.service;

import java.util.List;
import pe.edu.upc.dew.cobranzas.dao.InquilinoDaoImpl;
import pe.edu.upc.dew.cobranzas.model.Inquilino;

/**
 *
 * @author Ivan
 */
public class InquilinoServiceImpl implements InquilinoService {

    private InquilinoDaoImpl inquilinoDao;

    public void setInquilinoDao(InquilinoDaoImpl inquilinoDao) {
        this.inquilinoDao = inquilinoDao;
    }

    public List<Inquilino> Listado() {
        return inquilinoDao.Listado();
    }

      public Inquilino getInquilinoPorDni(String dni) {
          return inquilinoDao.getInquilinoPorDni(dni);
      }
}
